#ifndef CG07_UTILITIES
#define CG07_UTILITIES
//   utilities.h,  6.2.07, pm-n.


void    draw_pyramid();

double  wall_time();

float   gaussPeak( float my_x, float my_y, 
float sigma_x, float sigma_y, 
float x, float y ); 

void    errorAndExit( char *text ); 

float euclidianDistance(float* p1, float* p2);


void normalize(float *changeVector, float *normalized, float strength);


void vectorAddF(float * v1, float * v2, float * r);
void vectorSubF(float * v1, float * v2, float * r);
void addToVectorF(float * r, float * v1);
void subFromVectorF(float * r, float * v1);
void scaleVectorF(float * v, float scale);
void cutVector(float * v, float offset);
float vectorLength(float * v);

float getRand();
void print4x4(const float *);
void reportGLError(char * message, char * filename, long line);

#endif
